#define  _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include<stdlib.h>

int* twoSum(int* numbers, int numbersLen, int target, int* returnSize) {
    int* arr = (int*)malloc(sizeof(int) * 2);
    int i = 0, j = 0;
    for (i = 0; i < numbersLen; i++)
    {
        for (j = i + 1; j < numbersLen; j++)
        {
            if (numbers[i] + numbers[j] == target)
            {
                arr[0] = i + 1;
                arr[1] = j + 1;
                *returnSize = 2;
                return arr;
            }
        }

    }

}

